{extend name="layout:home" /}
{block name="container"}
<div class="layui-tab layui-tab-card">
    {include file="layout/admin_items" /}
    <div>&nbsp;</div>
    <form method="get" class="layui-form layui-form-pane">
        <input type="hidden" name="delago" id="delago" value="">
        <div class="layui-form-item">
            <div class="layui-input-inline" style="width: 250px;">
                <label class="layui-form-label">{$Think.lang.admin_log_man}</label>
                <input name="admin_name" value="{$Request.get.admin_name}" type="text" class="layui-input field-name float_input" id="admin_name"
                       style="display: inline-block;width: 50%;"/>
            </div>
            <div class="layui-input-inline" style="width: 440px;">
                <label class="layui-form-label">{$Think.lang.admin_log_dotime}</label>
                <input value="{$Request.get.time_from}" id="time_from" name="time_from" type="text" class="layui-input field-name"
                       style="display: inline-block;width: 30%;"/>
                <label for="time_to">~</label>
                <input value="{$Request.get.time_to}" id="time_to" name="time_to" type="text" class="layui-input field-name"
                       style="display: inline-block;width: 30%;"/>
            </div>
            <div class="layui-input-inline">
                <input type="submit" class="layui-btn layui-btn-normal" lay-submit value="{:lang('ds_search')}"/>
                <input type="reset" class="layui-btn layui-btn-warm" value="{:lang('ds_reset')}"/>
                <input type="button" class="layui-btn laydate-day-next" onclick="location.href = '{:url('Adminlog/export_step1')}'" value="{$Think.lang.ds_export}"/>
            </div>
        </div>
    </form>
    <div class="layui-tab-content page-tab-content">
        <table class="layui-table lay-even">
            <colgroup>
                <col width="50">
            </colgroup>
            <thead>
            <tr>
                <th></th>
                <th>{$Think.lang.admin_log_man}</th>
                <th>{$Think.lang.admin_log_do}</th>
                <th class="align-center">{$Think.lang.admin_log_dotime}</th>
                <th class="align-center">IP</th>
            </tr>
            </thead>
            <tbody>
            {notempty name="list"}
            {volist name="list" id="v"}
            <tr>
                <td class="w24">
                    <input type="checkbox" class="checkitem" value="{$v.adminlog_id}">
                </td>
                <td>{$v.admin_name}</td>
                <td>{$v.content}</td>
                <td class="align-center">{$v.createtime|date="Y-m-d H:i:s"}</td>
                <td class="align-center">{$v.ip}</td>
            </tr>
            {/volist}
            {else}
            <tr class="no_data">
                <td colspan="10">{$Think.lang.ds_no_record}</td>
            </tr>
            {/notempty}
            </tbody>
            <tfoot class="tfoot">
            {notempty name="list"}
            <tr class="tfoot">
                <td><input type="checkbox" class="checkall" id="checkallBottom" name="chkVal"></td>
                <td colspan="16"><label for="checkallBottom">{$Think.lang.ds_select_all}</label>
                    &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span>{$Think.lang.ds_del}</span></a>
                </td>
            </tr>
            {/notempty}
            </tfoot>
        </table>
        {$page|raw}
    </div>
</div>
<script>
    layui.use('laydate', function () {
        var laydate = layui.laydate;
        //执行一个laydate实例
        laydate.render({
            elem: '#time_from' //指定元素
        });
        //执行一个laydate实例
        laydate.render({
            elem: '#time_to' //指定元素
        });
    });
    function submit_delete(ids_str){
        _uri = ADMINSITEURL+"/Adminlog/list_del.html?adminlog_id=" + ids_str;
        dsLayerConfirm(_uri,'{$Think.lang.ds_confirm_cancel}');
    }
</script>
{/block}